import request from '@/utils/request'

//获取所有的店铺信息
export function getShopListApi(params) {
    return request({
      url: '/admin/aishop/pageList',
      method: 'get',
      params
    })
  }

  //新增店铺信息
  export function addShopApi(data) {
    return request({
      url: '/admin/aishop/insert',
      method: 'POST',
      data
    })
  }

  //删除店铺信息
  export function delShopApi(params) {
    return request({
      url: '/admin/aishop/delete',
      method: 'GET',
      params
    })
  }

//根据 id 查询店铺信息
export function seeShopApi(params) {
    return request({
      url: '/admin/aishop/load',
      method: 'GET',
      params
    })
  }

  //修改店铺信息
  export function editShopApi(data) {
    return request({
      url: '/admin/aishop/update',
      method: 'POST',
      data
    })
  }
  
  //新增-ai头像素材
  // export function addAiApi(data) {
  //   return request({
  //     url: '/admin/attachment/updateFile',
  //     method: 'POST',
  //     data
  //   })
  // }